package com.rongshu.view.discovery.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.rongshu.view.home.fragment.DiscoveryFragment;

/**
 * created by zhengweis on 2018/11/1.
 * description：
 */
public class TaHomePageTypePageAdapter extends FragmentStatePagerAdapter {
    String[] titles = {"1", "2", "3", "4"};
    private int penpalwill_id;

    public TaHomePageTypePageAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return createForNoExpand(position);
    }

    @Override
    public int getCount() {
        return titles.length;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return titles[position];
    }

    private Fragment createForNoExpand(int position) {
        DiscoveryFragment discoveryFragment = new DiscoveryFragment();
        return discoveryFragment;
    }
}